﻿<%@ Page Language="C#" MasterPageFile="~/QuanLy/QuanLy.master" AutoEventWireup="true" CodeFile="QLBaiDang.aspx.cs" Inherits="QuanLy_QLBaiDang" Title="Phần quản lý hệ thống" %>

<%@ Register src="../UserControl/UCPhanTrang.ascx" tagname="UCPhanTrang" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">

    <script language="javascript" type="text/javascript">
// <!CDATA[

function chkAll_onclick() {

}

function chkAll_onclick() {

}

// ]]>
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div class="title">
        <asp:Label ID="Label1" runat="server" Text="Không có trạng thái bài viết"></asp:Label>
    </div>
    <div class="toolbar">
        <asp:Button Text="Xóa bài đã chọn" runat="server" ID="btnDelete" CssClass="multidelete"
            BackColor="#6699FF" BorderColor="Black" BorderStyle="Double" Font-Bold="True"
            ForeColor="Maroon" />
        <asp:Button Text="Đăng bài đã chọn" runat="server" ID="btnDang" CssClass="multidelete"
            BackColor="#6699FF" BorderColor="Black" BorderStyle="Double" Font-Bold="True"
            ForeColor="Maroon" Visible="False" onclick="btnDang_Click" />
        <asp:Button Text="Cấm Đăng bài đã chọn" runat="server" ID="btnCamDang" CssClass="multidelete"
            BackColor="#6699FF" BorderColor="Black" BorderStyle="Double" Font-Bold="True"
            ForeColor="Maroon" Visible="False" onclick="btnCamDang_Click" />
    </div>
    <table class="list">
        <thead>
            <tr>
                <th class="cid">
                    <input type="checkbox" id="chkAll" />
                </th>
                <th class="small">
                    Hình ảnh
                </th>
                <th>
                    Tên bài đăng
                </th>
                <th class="small">
                    Trạng Thái
                </th>
                <th class="id">
                    MBV
                </th>
                <th class="small">
                    MenuID
                </th>
            </tr>
        </thead>
        <asp:Repeater runat="server" ID="repProd">
            <AlternatingItemTemplate>
                <tr class="even">
                    <td>
                        <input type="checkbox" name='cid' value='<%#Eval("MaBaiDang") %>' />
                    </td>
                    <td>
                        <a href='<%# DAL.Connect.Link.DenBaiDang("1",Eval("MaBaiDang").ToString()) %>'>
                            <asp:Image ID="Image1" runat="server" Height="50px" ImageUrl='<%# DAL.Connect.Link.LayHinhAnh(Eval("NoiDung").ToString()) %>'
                                Width="60px" />
                        </a>
                    </td>
                    <td class="link">
                        <a href='<%# DAL.Connect.Link.DenBaiDang("1",Eval("MaBaiDang").ToString()) %>'>
                            <%#Eval("TenBaiDang")%>
                        </a>
                    </td>
                    <td>
                        <%#Eval("TrangThai")%>
                    </td>
                    <td class="id">
                        <%#Eval("MaBaiDang")%>
                    </td>
                    <td>
                        <%#Eval("MaChuDe")%>
                    </td>
                </tr>
            </AlternatingItemTemplate>
            <ItemTemplate>
                <tr>
                    <td>
                        <input type="checkbox" name='cid' value='<%#Eval("MaBaiDang") %>' />
                    </td>
                    <td>
                        <a href='<%# DAL.Connect.Link.DenBaiDang("1",Eval("MaBaiDang").ToString()) %>'>
                            <asp:Image ID="Image1" runat="server" Height="50px" ImageUrl='<%# DAL.Connect.Link.LayHinhAnh(Eval("NoiDung").ToString()) %>'
                                Width="60px" />
                        </a>
                    </td>
                    <td class="link">
                        <a href='<%# DAL.Connect.Link.DenBaiDang("1",Eval("MaBaiDang").ToString()) %>'>
                            <%#Eval("TenBaiDang")%>
                        </a>
                    </td>
                    <td>
                        <%#Eval("TrangThai")%>
                    </td>
                    <td class="id">
                        <%#Eval("MaBaiDang")%>
                    </td>
                    <td>
                        <%#Eval("MaChuDe")%>
                    </td>
                </tr>
            </ItemTemplate>
        </asp:Repeater>
    </table>
    <uc1:UCPhanTrang ID="PagerBottom" runat="server" />
</asp:Content>

